From 37eb10eb5998d0775b07f80ddc36ee59c35784a5 Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Mon, 10 Sep 2007 13:56:34 -0600 Subject: [PATCH] [IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram() use xc_map_foreign_pages() where possible Signed-off-by: Isaku Yamahata --- tools/libxc/ia64/xc_ia64_hvm_build.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/libxc/ia64/xc_ia64_hvm_build.c b/tools/libxc/ia64/xc_ia64_hvm_build.c index 5147f051e2..a5a7cc8aa3 100644 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c @@ -701,8 +701,9 @@ copy_from_GFW_to_nvram(int xc_handle, uint32_t dom, int nvram_fd) for ( i=0; i> PAGE_SHIFT) + i; - tmp_ptr = (char *)xc_map_foreign_batch(xc_handle, dom, - PROT_READ | PROT_WRITE, pfn_list, nr_pages); + tmp_ptr = (char *)xc_map_foreign_pages(xc_handle, dom, + PROT_READ | PROT_WRITE, + pfn_list, nr_pages); if ( NULL == tmp_ptr ) { PERROR("Cannot get nvram data from GFW!\n"); -- 2.30.2